package com.lysj.admin.master.auth.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lysj.admin.master.common.spring.base.BaseEntity;
import com.lysj.admin.master.common.spring.mpbase.IdEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * @author Created by zk on 2019-12-05 2:15
 * @description
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@TableName("lysj_auth_role_permission")
@Table(name = "lysj_auth_role_permission",
        indexes = {@Index(name = "idx_role_id",columnList = "roleId"),
                @Index(name = "idx_permission_id",columnList = "permissionId")})
public class RolePermission extends IdEntity {
    private String roleId;
    private String permissionId;
}
